package cn.btks.resultintegration.rule.service.impl;

import cn.btks.resultintegration.rule.pojo.IndustrialStructureSecondCategory;
import cn.btks.resultintegration.rule.repository.IndustrialStructureSecondCategoryRepository;
import cn.btks.resultintegration.rule.service.IndustrialStructureSecondCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lijun
 * @Date 2021/2/19 10:48
 */
@Service
public class IndustrialStructureSecondCategoryServiceImpl implements IndustrialStructureSecondCategoryService {

    @Autowired
    IndustrialStructureSecondCategoryRepository industrialStructureSecondCategoryRepository;

    @Override
    public List<IndustrialStructureSecondCategory> findAllIndustrialStructureSecondCategory() {
        return industrialStructureSecondCategoryRepository.findAll();
    }

    @Override
    public List<IndustrialStructureSecondCategory> findAllByCategoryId(Long categoryId) {
        return industrialStructureSecondCategoryRepository.findAllByCategoryId(categoryId);
    }
}
